#include "Precompiled.h"
#include "EntityRenderPair.h"
#include "IEntityRender.h"

namespace Game {
namespace Common {

EntityRenderPair::EntityRenderPair(DrawableEntity* drawableEntity, IEntityRender* entityRender) :
        drawableEntity(drawableEntity),
        entityRender(entityRender) {
}

EntityRenderPair::~EntityRenderPair(void) {
}

DrawableEntity* EntityRenderPair::GetDrawableEntity() const {
    return this->drawableEntity;
}

IEntityRender* EntityRenderPair::GetEntityRender() const {
    return this->entityRender;
}

void EntityRenderPair::Draw(const float& elapsedTime) {
    if (this->entityRender != NULL) {
        this->entityRender->Draw(this->drawableEntity, elapsedTime);
    }
}

}
}
